/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function() {
    $('#doctype').change(function() {
        var id = $('#doctype').val();
        $.ajax({
            url: "type/getalltopics",
            type: "POST",
            data: {id: id},
            success: function(data) {
                $('#topic').html(data);
            }
        });
    });
});
